package com.supplychain.scm.core.common.annotation;

import com.supplychain.scm.core.common.exception.CustomException;
import com.supplychain.scm.core.common.exception.ExceptionInterceptorRegistrar;
import org.springframework.context.annotation.Import;

import java.lang.annotation.*;

/**
 * @author liyang
 * @version 1.0.0
 * @ClassName EnableException
 * @createTime 17:33:00 2022/12/03
 */
@Target({ ElementType.TYPE })
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Inherited
@Import({ ExceptionInterceptorRegistrar.class })
public @interface EnableException {

    Class<? extends CustomException> exceptionClass() default CustomException.class;
}
